package com.mysafe.provision.service;

import com.mysafe.provision.exception.ValidationException;

public interface IPersistableEntity<T> {

	void validateInsert(T entity) throws ValidationException;
	
	void validateUpdate(T entity) throws ValidationException;
	
	void insert(T entity) throws ValidationException;
	
	void update(T entity) throws ValidationException;
	
	boolean canDelete(T entity);
	
	void delete(T entity);
	
}
